﻿package org.openChart.sprite.elements 
{
	import flash.system.IMEConversionMode;
	import org.openChart.display.chart.DisplayPieElement;
	import org.openChart.display.DisplayElement;
	import org.openChart.sprite.CommandHandler;
	
	/**
	 * 
	 * @author Chongyuan
	 */
	public class Pie2d extends ElementSprite
	{
		
		public function Pie2d( displayElement:DisplayElement, commandHandler:CommandHandler) 
		{
			
			super(displayElement, commandHandler);
			
		}
		
		public override function paint():void
		{
			var displayElement:DisplayPieElement = displayObject as DisplayPieElement;
			graphics.clear();
			fillSector2d(displayElement.position.x, displayElement.position.y, displayElement.longRadius, displayElement.shotRadius, displayElement.beginAngle, displayElement.endAngle + 1, color);
		}
	}
	
}